package com.bgs.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="caozuo对象", description="操作表")
public class Caozuo {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "修改人")
    private Integer xname;

    @ApiModelProperty(value = "被修改人")
    private Integer bid;

    @ApiModelProperty(value = "被修改字段")
    private String xziduan;

    @ApiModelProperty(value = "操作")
    private String caozuo;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime shijian;

    @ApiModelProperty(value = "原数据")
    private String yuan;

    @ApiModelProperty(value = "新数据")
    private String xin;

}
